
import axios from 'axios';

const apiClient = axios.create({
    baseURL: 'http://localhost:8090', // 后端服务器地址
    headers: {
        'Content-Type': 'application/json',
    },
});

export function registerUser(data) {
    return apiClient.post('/user/register', data);
}

export function loginUser(data) {
    return apiClient.post('/user/login', data);
}
